package com.seqb.common.task;

import com.seqb.manage.reptile.service.ReptileVideoService;
import com.seqb.utils.DateUtils;
import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.Date;

/**
 * @author lilinshen
 * @title 9uu视频爬取任务
 * @description 请填写相关描述
 * @date 2020/5/14
 */
@Component
public class NineUuVideoJob implements Job {
    private static final Logger LOGGER = LoggerFactory.getLogger(NineUuVideoJob.class);
    @Autowired
    private ReptileVideoService reptileVideoService;

    @Override
    public void execute(JobExecutionContext jobExecutionContext) throws JobExecutionException {
        LOGGER.info("9uu视频爬取任务开始-----------" + DateUtils.format(new Date(), "yyyy-MM-dd HH:mm:ss"));
        reptileVideoService.reptileViode();
        LOGGER.info("9uu视频爬取任务开始-----------" + DateUtils.format(new Date(), "yyyy-MM-dd HH:mm:ss"));
    }
}
